class ShopProduct < ActiveRecord::Base
  belongs_to :shop_address
  belongs_to :product

  validates_presence_of :shop_address_id
  validates_presence_of :product_id
  validates_uniqueness_of :product_id, :scope => :shop_address_id
end
